<?php /* Smarty version 2.6.18, created on 2013-06-08 11:17:31
         compiled from modules/index.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'modules/index.tpl', 66, false),array('modifier', 'stripslashes', 'modules/index.tpl', 66, false),array('modifier', 'price_format', 'modules/index.tpl', 140, false),)), $this); ?>
<?php echo ' 
	<script src="jquery/js/jquery-1.8.3.js"></script>
	<script src="jquery/js/jquery-ui.js"></script>
	<link rel="stylesheet" href="jquery/css/jquery-ui.css" />
	
	<!--[if gte IE 9]>
		<style type="text/css">
			.gradient {
				filter: none;
			}
		</style>
	<![endif]-->		
'; ?>


<?php if ($this->_tpl_vars['search_results']['0']['id'] == ""): ?>
	<div class="busquedaError">
		<?php echo $this->_tpl_vars['lang']['multi_not_found']; ?>

	</div>
<?php else: ?>

		<div class="contenedorMapa"></div>
	


		<div class="selectorDeliveryIndex">
		<a href="index.php?filtrarPor=0">
			Todos
		</a>
			
		|
			
		<a href="index.php?filtrarPor=1">
			Destacados
		</a>
			
		|
			
		<a href="index.php?filtrarPor=2">
			Abiertos
		</a>
	</div>
		
	
	
	
		<?php if ($this->_tpl_vars['busqueda'] == 1): ?>
		<div class="busquedaPor">
			Resultados de la busqueda: <b><?php echo $this->_tpl_vars['busquedaTxt']; ?>
</b>
		</div>
	<?php endif; ?>
	

	
		<?php if ($this->_tpl_vars['filtrarPor'] == 0): ?>
	
				<?php if ($this->_tpl_vars['search_destacados']['0']['id'] != ""): ?>
			<?php $_from = $this->_tpl_vars['search_destacados']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
				<div class="search_result" nombre="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"
					descripcion="<?php echo $this->_tpl_vars['sr']['description']; ?>
" direccion="<?php echo $this->_tpl_vars['sr']['locations']['0']['city']; ?>
" noti="<?php echo $this->_tpl_vars['sr']['popup']; ?>
">
									
					<div class="cabeceraDestacadosSearchResults">
						<div class="nombreSearchResults">
							<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  								<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

  							</a>
						</div>
											

						<div class="fiveStarRating" id="<?php echo $this->_tpl_vars['sr']['email']; ?>
" puntos="<?php echo $this->_tpl_vars['sr']['uid']; ?>
">
							<div class="ratings" id="<?php echo $this->_tpl_vars['sr']['sitename']; ?>
" >
								<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['loop'] = is_array($_loop=$this->_tpl_vars['sr']['uid']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
$this->_sections['foo']['step'] = 1;
$this->_sections['foo']['start'] = $this->_sections['foo']['step'] > 0 ? 0 : $this->_sections['foo']['loop']-1;
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = $this->_sections['foo']['loop'];
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
									<div class="<?php echo $this->_sections['foo']['iteration']; ?>
 ratings_stars ratings_over"></div>
								<?php endfor; endif; ?>
								
								<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)$this->_tpl_vars['sr']['uid'];
$this->_sections['foo']['loop'] = is_array($_loop=5) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
$this->_sections['foo']['step'] = 1;
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
		  							<div class="<?php echo $this->_sections['foo']['iteration']; ?>
 ratings_stars ratings_blank"></div>
								<?php endfor; endif; ?>
        					</div>
        					
        					<div class="total_votes">
								Estrellas: <b><?php echo $this->_tpl_vars['sr']['uid']; ?>
</b> / 5
								&nbsp;&nbsp;&nbsp;&nbsp;
								Votos: <b><?php echo $this->_tpl_vars['sr']['votos']; ?>
</b>
            			</div>
        				</div>
	
												
						<div class="direccionSearchResults">
							<?php if ($this->_tpl_vars['sr']['barrio'] != ""): ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
, <?php echo $this->_tpl_vars['sr']['barrio']; ?>

							<?php else: ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

							<?php endif; ?>
						</div>
					</div>
										
					<div class="contenidoSearchResults">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
  							<tr>
  								<td width="170">
     								<div class="logoDeliverysSearchResults">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>" />
     									</a>
     								</div>
     							</td>
    			    			
    			    			<td width="150">
    			    				<div class="cajaEstado">
    									<?php if ($this->_tpl_vars['sr']['status'] == 'open'): ?>
    										<div class="estadoAbierto" >
												ABIERTO
											</div>
										<?php else: ?>
											<div class="estadoCerrado">
												CERRADO
											</div>
    						  			<?php endif; ?>
    						  		</div>
    							</td>
     			    					
    							<td>
									<div class="textoDeliveryInfo">
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_phone']; ?>
:</span><?php echo $this->_tpl_vars['sr']['locations']['0']['phone']; ?>


										<br />
										
										<span class="tituloDeliveryInfo">Pedir online:</span><?php if ($this->_tpl_vars['sr']['multi'] == 1): ?>SI<?php else: ?>NO<?php endif; ?>
										
										<br />
																				
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_fee']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['tax'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      							
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_minimum']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitintime'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      								
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_demora']; ?>
:</span><?php echo $this->_tpl_vars['sr']['deliverytime']; ?>
 min.
									</div>
    							</td>
    							
  								<td>
  									<div class="cajaBotonMenu">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<div class="boton-menu">
	     										<?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>

	     										<div class="flechaDerecha"></div>
	     									</div>
     									</a>
  									</div>
								</td>
    						</tr>
    					</table>
					</div>
					    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    	<?php endif; ?>
       
    
    
			
	   <?php if ($this->_tpl_vars['search_results_open']['0']['id'] != ""): ?>	
			<?php $_from = $this->_tpl_vars['search_results_open']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
				<div class="search_result" nombre="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"
					descripcion="<?php echo $this->_tpl_vars['sr']['description']; ?>
" direccion="<?php echo $this->_tpl_vars['sr']['locations']['0']['city']; ?>
" noti="<?php echo $this->_tpl_vars['sr']['popup']; ?>
">
					
					<div class="cabeceraNormalesSearchResults">
						<div class="nombreSearchResults">
							<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  								<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

  							</a>
						</div>
						
						<div class="iconoNotificacion">
							<?php if ($this->_tpl_vars['sr']['popup'] == 1): ?>
								<img src="images/notiSms.png"  />
							<?php else: ?>
								<img src="images/notiMail.png" />
							<?php endif; ?>
						</div>

						<div class="direccionSearchResults">
							<?php if ($this->_tpl_vars['sr']['barrio'] != ""): ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
, <?php echo $this->_tpl_vars['sr']['barrio']; ?>

							<?php else: ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

							<?php endif; ?>
						</div>
					</div>
					
					<div class="contenidoSearchResults">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
  							<tr>    							
     							<td width="170">
     								<div class="logoDeliverys">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>"  />
     									</a>
     								</td>
     							</div>
								
								<td width="150">
									<div class="cajaEstado">
										<div class="estadoAbierto">	
											ABIERTO
										</div>
									</div>
    							</td>
    							
    							<td>
									<div class="textoDeliveryInfo">
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_phone']; ?>
:</span><?php echo $this->_tpl_vars['sr']['locations']['0']['phone']; ?>


										<br />
										
										<span class="tituloDeliveryInfo">Pedir online:</span><?php if ($this->_tpl_vars['sr']['multi'] == 1): ?>SI<?php else: ?>NO<?php endif; ?>
										
										<br />
																				
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_fee']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['tax'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      							
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_minimum']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitintime'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      								
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_demora']; ?>
:</span><?php echo $this->_tpl_vars['sr']['deliverytime']; ?>
 min.
									</div>
    							</td>
    							
  								<td>
  									<div class="cajaBotonMenu">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<div class="boton-menu">
	     										<?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>

	     										<div class="flechaDerecha"></div>
	     									</div>
     									</a>
  									</div>
								</td>
    						</tr>
    					</table>
    				</div>
    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    	<?php endif; ?>
    	
    	
    	
    	  	
    	<?php if ($this->_tpl_vars['search_results_close']['0']['id'] != ""): ?>	
			<?php $_from = $this->_tpl_vars['search_results_close']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
				<div class="search_result" nombre="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"
					descripcion="<?php echo $this->_tpl_vars['sr']['description']; ?>
" direccion="<?php echo $this->_tpl_vars['sr']['locations']['0']['city']; ?>
" noti="<?php echo $this->_tpl_vars['sr']['popup']; ?>
">
				
					<div class="cabeceraNormalesSearchResults">
						<div class="nombreSearchResults">
							<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  								<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

  							</a>
						</div>
						
						<div class="iconoNotificacion">
							<?php if ($this->_tpl_vars['sr']['popup'] == 1): ?>
								<img src="images/notiSms.png"  />
							<?php else: ?>
								<img src="images/notiMail.png" />
							<?php endif; ?>
						</div>

						<div class="direccionSearchResults">
							<?php if ($this->_tpl_vars['sr']['barrio'] != ""): ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
, <?php echo $this->_tpl_vars['sr']['barrio']; ?>

							<?php else: ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

							<?php endif; ?>
						</div>
					</div>
										
					<div class="contenidoSearchResults">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
  							<tr>    						
     							<td width="170">
     								<div class="logoDeliverys">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>" width="120" height="70px" border="0" />
     									</a>
     							</td>
    						
    							<td width="150">
    								<div class="cajaEstado">
    									<div class="estadoCerrado">
    										CERRADO
										</div>
									</div>
    							</td>
    						
								<td>
									<div class="textoDeliveryInfo">
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_phone']; ?>
:</span><?php echo $this->_tpl_vars['sr']['locations']['0']['phone']; ?>


										<br />
										
										<span class="tituloDeliveryInfo">Pedir online:</span><?php if ($this->_tpl_vars['sr']['multi'] == 1): ?>SI<?php else: ?>NO<?php endif; ?>
										
										<br />
																				
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_fee']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['tax'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      							
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_minimum']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitintime'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      								
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_demora']; ?>
:</span><?php echo $this->_tpl_vars['sr']['deliverytime']; ?>
 min.
									</div>
  								</td>
    							
  								<td>
  									<div class="cajaBotonMenu">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<div class="boton-menu">
	     										<?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>

	     										<div class="flechaDerecha"></div>
	     									</div>
     									</a>
  									</div>
								</td>
    						</tr>
    					</table>
    				</div>
    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    	<?php endif; ?>	
    
    	<div style="padding:10px">
    		<?php echo $this->_tpl_vars['pagination']; ?>

    	</div>
	<?php endif; ?>
		
	
	
		<?php if ($this->_tpl_vars['filtrarPor'] == 1): ?>
	
				<?php if ($this->_tpl_vars['search_destacados']['0']['id'] != ""): ?>
			<?php $_from = $this->_tpl_vars['search_destacados']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
				<div class="search_result" nombre="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"
					descripcion="<?php echo $this->_tpl_vars['sr']['description']; ?>
" direccion="<?php echo $this->_tpl_vars['sr']['locations']['0']['city']; ?>
" noti="<?php echo $this->_tpl_vars['sr']['popup']; ?>
">
				
					<div class="cabeceraDestacadosSearchResults">
						<div class="nombreSearchResults">
							<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  								<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

  							</a>
						</div>
						
						<div class="iconoNotificacion">
							<?php if ($this->_tpl_vars['sr']['popup'] == 1): ?>
								<img src="images/notiSms.png"  />
							<?php else: ?>
								<img src="images/notiMail.png" />
							<?php endif; ?>
						</div>
						
						<div class="fiveStarRating" id="<?php echo $this->_tpl_vars['sr']['email']; ?>
">
							<div id="<?php echo $this->_tpl_vars['sr']['sitename']; ?>
" class="ratings" mail="<?php echo $this->_tpl_vars['sr']['email']; ?>
">
								<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['loop'] = is_array($_loop=$this->_tpl_vars['sr']['uid']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
$this->_sections['foo']['step'] = 1;
$this->_sections['foo']['start'] = $this->_sections['foo']['step'] > 0 ? 0 : $this->_sections['foo']['loop']-1;
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = $this->_sections['foo']['loop'];
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
									<div class="<?php echo $this->_sections['foo']['iteration']; ?>
 ratings_stars ratings_over"></div>
								<?php endfor; endif; ?>
								
								<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)$this->_tpl_vars['sr']['uid'];
$this->_sections['foo']['loop'] = is_array($_loop=5) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
$this->_sections['foo']['step'] = 1;
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
	  								<div class="<?php echo $this->_sections['foo']['iteration']; ?>
 ratings_stars ratings_blank"></div>
								<?php endfor; endif; ?>
        					</div>
        					
        					<div class="total_votes">
								Estrellas: <b><?php echo $this->_tpl_vars['sr']['uid']; ?>
</b> / 5
								&nbsp;&nbsp;&nbsp;&nbsp;
								Votos: <b><?php echo $this->_tpl_vars['sr']['votos']; ?>
</b>
            			</div>
        				</div>


						<div class="direccionSearchResults">
							<?php if ($this->_tpl_vars['sr']['barrio'] != ""): ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
, <?php echo $this->_tpl_vars['sr']['barrio']; ?>

							<?php else: ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

							<?php endif; ?>
						</div>
					</div>
					
										
					<div class="contenidoSearchResults">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
  							<tr>
  								<td width="170">
     								<div class="logoDeliverysSearchResults">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>" />
     									</a>
     								</div>
     							</td>
    			    			
    			    			<td width="150">
    			    				<div class="cajaEstado">
    									<?php if ($this->_tpl_vars['sr']['status'] == 'open'): ?>
    										<div class="estadoAbierto" >
												ABIERTO
											</div>
										<?php else: ?>
											<div class="estadoCerrado">
												CERRADO
											</div>
    						  			<?php endif; ?>
    						  		</div>
    							</td>
     			    					
    							<td>
									<div class="textoDeliveryInfo">
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_phone']; ?>
:</span><?php echo $this->_tpl_vars['sr']['locations']['0']['phone']; ?>


										<br />
										
										<span class="tituloDeliveryInfo">Pedir online:</span><?php if ($this->_tpl_vars['sr']['multi'] == 1): ?>SI<?php else: ?>NO<?php endif; ?>
										
										<br />
																				
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_fee']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['tax'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      							
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_minimum']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitintime'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      								
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_demora']; ?>
:</span><?php echo $this->_tpl_vars['sr']['deliverytime']; ?>
 min.
									</div>
    							</td>
    							
  								<td>
  									<div class="cajaBotonMenu">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<div class="boton-menu">
	     										<?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>

	     										<div class="flechaDerecha"></div>
	     									</div>
     									</a>
  									</div>
								</td>
    						</tr>
    					</table>
					</div>
					    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    	<?php else: ?>
    		<div class="busquedaError">
    			Lo sentimos, no se han encontrado resultados para la búsqueda realizada.
			</div>
    	<?php endif; ?>
         
    	<div style="padding:10px">
    		<?php echo $this->_tpl_vars['pagination']; ?>

    	</div>
	<?php endif; ?>
	
	
	
		<?php if ($this->_tpl_vars['filtrarPor'] == 2): ?>
	
				<?php $_from = $this->_tpl_vars['destacadosAbiertos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
			<div class="search_result" nombre="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"
					descripcion="<?php echo $this->_tpl_vars['sr']['description']; ?>
" direccion="<?php echo $this->_tpl_vars['sr']['locations']['0']['city']; ?>
" noti="<?php echo $this->_tpl_vars['sr']['popup']; ?>
">
					
					
				<div class="cabeceraDestacadosSearchResults">
					<div class="nombreSearchResults">
						<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  							<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

  						</a>
					</div>
					
					<div class="iconoNotificacion">
						<?php if ($this->_tpl_vars['sr']['popup'] == 1): ?>
							<img src="images/notiSms.png"  />
						<?php else: ?>
							<img src="images/notiMail.png" />
						<?php endif; ?>
					</div>
						
					<div class="fiveStarRating" id="<?php echo $this->_tpl_vars['sr']['email']; ?>
">
						<div id="<?php echo $this->_tpl_vars['sr']['sitename']; ?>
" class="ratings" mail="<?php echo $this->_tpl_vars['sr']['email']; ?>
">
							<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['loop'] = is_array($_loop=$this->_tpl_vars['sr']['uid']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
$this->_sections['foo']['step'] = 1;
$this->_sections['foo']['start'] = $this->_sections['foo']['step'] > 0 ? 0 : $this->_sections['foo']['loop']-1;
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = $this->_sections['foo']['loop'];
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
								<div class="<?php echo $this->_sections['foo']['iteration']; ?>
 ratings_stars ratings_over"></div>
							<?php endfor; endif; ?>
								
							<?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)$this->_tpl_vars['sr']['uid'];
$this->_sections['foo']['loop'] = is_array($_loop=5) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
$this->_sections['foo']['step'] = 1;
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
	  							<div class="<?php echo $this->_sections['foo']['iteration']; ?>
 ratings_stars ratings_blank"></div>
							<?php endfor; endif; ?>
        				</div>
        					
        				<div class="total_votes">
							Estrellas: <b><?php echo $this->_tpl_vars['sr']['uid']; ?>
</b> / 5
							&nbsp;&nbsp;&nbsp;&nbsp;
							Votos: <b><?php echo $this->_tpl_vars['sr']['votos']; ?>
</b>
            		</div>
        			</div>

					<div class="direccionSearchResults">
						<?php if ($this->_tpl_vars['sr']['barrio'] != ""): ?>
							<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
, <?php echo $this->_tpl_vars['sr']['barrio']; ?>

						<?php else: ?>
							<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

						<?php endif; ?>
					</div>
				</div>
									
				<div class="contenidoSearchResults">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
  						<tr>
  							<td width="170">
     							<div class="logoDeliverysSearchResults">
     								<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     									<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>" />
     								</a>
     							</div>
     						</td>
    			    			
    			  			<td width="150">
    			  				<div class="cajaEstado">
    								<?php if ($this->_tpl_vars['sr']['status'] == 'open'): ?>
    									<div class="estadoAbierto" >
											ABIERTO
										</div>
									<?php else: ?>
										<div class="estadoCerrado">
											CERRADO
										</div>
    					  			<?php endif; ?>
    					  		</div>
    						</td>
     			    					
    						<td>
								<div class="textoDeliveryInfo">
									<div class="textoDeliveryInfo">
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_phone']; ?>
:</span><?php echo $this->_tpl_vars['sr']['locations']['0']['phone']; ?>


										<br />
										
										<span class="tituloDeliveryInfo">Pedir online:</span><?php if ($this->_tpl_vars['sr']['multi'] == 1): ?>SI<?php else: ?>NO<?php endif; ?>
										
										<br />
																				
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_fee']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['tax'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      							
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_minimum']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitintime'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      								
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_demora']; ?>
:</span><?php echo $this->_tpl_vars['sr']['deliverytime']; ?>
 min.
									</div>
  							</td>
    							
							<td>
								<div class="cajaBotonMenu">
  									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  										<div class="boton-menu">
    										<?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>

    										<div class="flechaDerecha"></div>
     									</div>
  									</a>
								</div>
							</td>
  						</tr>
   				</table>
				</div>
				    		</div>
    	<?php endforeach; endif; unset($_from); ?>
	
		
		
				<?php if ($this->_tpl_vars['search_results_openTotales']['0']['id'] != ""): ?>	
			<?php $_from = $this->_tpl_vars['search_results_openTotales']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['sr']):
?>
				<div class="search_result" nombre="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
"
					descripcion="<?php echo $this->_tpl_vars['sr']['description']; ?>
" direccion="<?php echo $this->_tpl_vars['sr']['locations']['0']['city']; ?>
" noti="<?php echo $this->_tpl_vars['sr']['popup']; ?>
">
					
					<div class="cabeceraNormalesSearchResults">
						<div class="nombreSearchResults">
							<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
  								<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['sr']['sitename'])) ? $this->_run_mod_handler('replace', true, $_tmp, '_', ' ') : smarty_modifier_replace($_tmp, '_', ' ')))) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

  							</a>
						</div>
						
						<div class="iconoNotificacion">
							<?php if ($this->_tpl_vars['sr']['popup'] == 1): ?>
								<img src="images/notiSms.png"  />
							<?php else: ?>
								<img src="images/notiMail.png" />
							<?php endif; ?>
						</div>


						<div class="direccionSearchResults">
							<?php if ($this->_tpl_vars['sr']['barrio'] != ""): ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>
, <?php echo $this->_tpl_vars['sr']['barrio']; ?>

							<?php else: ?>
								<?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['address'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : stripslashes($_tmp)); ?>

							<?php endif; ?>
						</div>
					</div>
										
					<div class="contenidoSearchResults">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
  							<tr>    							
     							<td width="170">
     								<div class="logoDeliverys">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<img src="<?php if ($this->_tpl_vars['sr']['logo'] == ""): ?>images/no_image.gif<?php else: ?>UserFiles/Image/product_photos/<?php echo $this->_tpl_vars['sr']['logo']; ?>
<?php endif; ?>"  />
     									</a>
     								</td>
     							</div>
								
								<td width="150">
									<div class="cajaEstado">
										<div class="estadoAbierto">	
											ABIERTO
										</div>
									</div>
    							</td>
    							
    							<td>
									<div class="textoDeliveryInfo">
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_phone']; ?>
:</span><?php echo $this->_tpl_vars['sr']['locations']['0']['phone']; ?>


										<br />
										
										<span class="tituloDeliveryInfo">Pedir online:</span><?php if ($this->_tpl_vars['sr']['multi'] == 1): ?>SI<?php else: ?>NO<?php endif; ?>
										
										<br />
																				
										<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_fee']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['locations']['0']['tax'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      							
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_minimum']; ?>
:</span><?php echo ((is_array($_tmp=$this->_tpl_vars['sr']['sitintime'])) ? $this->_run_mod_handler('price_format', true, $_tmp) : smarty_modifier_price_format($_tmp)); ?>

										
										<br />
      								
      								<span class="tituloDeliveryInfo"><?php echo $this->_tpl_vars['lang']['delivery_demora']; ?>
:</span><?php echo $this->_tpl_vars['sr']['deliverytime']; ?>
 min.
									</div>
    							</td>
    							
  								<td>
  									<div class="cajaBotonMenu">
     									<a href="sitios/<?php echo $this->_tpl_vars['sr']['sitename']; ?>
">
     										<div class="boton-menu">
	     										<?php echo $this->_tpl_vars['lang']['multi_order_link_text']; ?>

	     										<div class="flechaDerecha"></div>
	     									</div>
     									</a>
  									</div>
								</td>
    						</tr>
    					</table>
    				</div>
    			</div>
    		<?php endforeach; endif; unset($_from); ?>
    		
		<?php else: ?>
    		<div class="busquedaError">
    			Lo sentimos, no se han encontrado resultados para la búsqueda realizada.
			</div>
    	<?php endif; ?>			
         
    	<div style="padding:10px">
    		<?php echo $this->_tpl_vars['pagination']; ?>

    	</div>
	<?php endif; ?>
<?php endif; ?>


<?php echo '
 	<script>			
		$(document).ready(function() {
					
			$(\'.ratings_stars\').hover(										
				// Mouseover
				function() {
					$(this).prevAll().andSelf().addClass(\'ratings_over\');
					$(this).nextAll().removeClass(\'ratings_vote\'); 
					
				},
		
				//Mouseout
				function() {
					$(this).prevAll().andSelf().removeClass(\'ratings_over\');
					$(this).nextAll().andSelf().removeClass(\'ratings_over\');
				}
			);
	

			$(\'.ratings_stars\').bind(\'click\', function() {
				var sitename = $(this).parent().attr("id");
				var num = $(this).attr("class");
				var mail = $(this).parent().attr("mail");
				var poststr = "sitename="+sitename+"&stars="+num;
		
				$.ajax({
					url:"modules/votar.php",
					type: "POST",
					data:poststr,
					
					success:function(result){
						$(" .total_votes ").html(result);
					}
   			});	
			});
						
			//Manejador de mostrar-ocultar google map.
			$("div.search_result").hover(
				function() {
					var descripcion 	= $( this ).attr( "descripcion" );
					var direccion 		= $( this ).attr( "direccion" );
					direccion 			= direccion.replace(" ", "");
					
					var sitename		= $( this ).attr( "nombre" );
					var noti				= $( this ).attr( "noti" );
					
					if( noti == 0){
						var noti = "El pedido se notifica al delivery vía E-mail";
					} else {
						var noti = "El pedido se notifica al delivery vía SMS";
					}
			
					var img = "<img src=http://maps.googleapis.com/maps/api/staticmap?center=" + direccion + ",Cordoba&zoom=16&size=285x285\\
&markers=size:big|color:green|" + direccion +",+Cordoba&sensor=false />";

					var html	= "<div class=\'sitenameMapa\'>"+ sitename +"</div><div class=\'descripcionMapa\'>"+ descripcion +"</div><div class=\'imagenMapa\'>"+ img +"</div><div class=\'notificacionMapa\'>"+ noti +"</div>";
					
					$("div.contenedorMapa").html(html);
					$("div.contenedorMapa").show(400);
				},
				
				function(){
					$("div.contenedorMapa").hide();
				}
			);
			
			$("div.contenedorMapa").hover(
				function(){
					$("div.contenedorMapa").show();
				},
				
				function(){
					$("div.contenedorMapa").hide();
				}
			);					
		});
	</script>
'; ?>